﻿<%@ Page Language="VB" MasterPageFile="~/AdmMaster.master" AutoEventWireup="false" CodeFile="AdmEvtGerenciamentoEvento.aspx.vb" Inherits="Eventos_AdmEvtGerenciamentoEvento"  %>

<%@ Register assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" namespace="System.Web.UI" tagprefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    
    <div class = "texto-basico">
            <table>
                <tr>
                    <td style="width: 22px; height: 22px;">
                        </td>
                    <td colspan="3" style="height: 22px"><p class="titulo-pagina">
                        <asp:Label ID="lblTitulo" runat="server" style="font-weight: 700" Text="Label"></asp:Label></p>
                    </td>
                </tr>
                <tr>
                    <td style="width: 22px">
                        &nbsp;</td>
                    <td style="width: 82px">
                        &nbsp;</td>
                    <td style="width: 62px">
                        &nbsp;</td>
                    <td style="width: 134px">
                        &nbsp;</td>
                </tr>
                <tr>
                    <td style="width: 22px">
                        &nbsp;</td>
                    <td style="width: 82px">
                        <asp:Label ID="lblCaptionId" runat="server" Text="Id:"></asp:Label>
                    </td>
                    <td colspan="2">
                        <asp:Label ID="lblId" runat="server" Font-Bold="True" Text="Label"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td style="width: 22px">
                        &nbsp;</td>
                    <td style="width: 82px">
                        <asp:Label ID="lblCaptionURL" runat="server" Text="URL:"></asp:Label>
                    </td>
                    <td colspan="2">
                        <asp:HyperLink ID="hlUrl" runat="server" style="font-weight: 700">HyperLink</asp:HyperLink>
                    </td>
                </tr>
                <tr>
                    <td style="width: 22px">
                        &nbsp;</td>
                    <td style="width: 82px" valign="middle">
                        Nome:<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ErrorMessage="Por favor preencha o Nome do Evento." 
                    ValidationGroup="Evento" ControlToValidate="txtNome">*</asp:RequiredFieldValidator>
                    </td>
                    <td colspan="2">
                        <asp:TextBox ID="txtNome" runat="server" Width="390px" CausesValidation="True" 
                            ValidationGroup="Evento"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td style="width: 22px">
                        &nbsp;</td>
                    <td style="width: 82px">
                        Banner:</td>
                    <td colspan="2">
                        <asp:FileUpload ID="FileUpload1" runat="server" Width="390px" />
                    </td>
                </tr>
                <tr>
                    <td style="width: 22px; height: 26px;">
                    </td>
                    <td style="width: 82px; height: 26px;">
                        Data Início:<asp:RequiredFieldValidator ID="RequiredFieldValidator4" 
                    runat="server" ControlToValidate="txtDtInicio" 
                    ErrorMessage="Por favor preencha a Data Inicial do Evento." 
                    ValidationGroup="Evento">*</asp:RequiredFieldValidator>
                    
                    
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtDtInicio"
                Display="None" ErrorMessage="Data de Expedição Inválida - Utilize DD/MM/AAAA"
                SetFocusOnError="True" ValidationExpression="(0[1-9]|[12][0-9]|3[01])[/](0[1-9]|1[012])[/](19|20)\d\d" ValidationGroup="Evento">*</asp:RegularExpressionValidator>

                    
                    </td>
                    <td colspan="2">
                        <asp:TextBox ID="txtDtInicio" runat="server" Width="86px" 
                            CausesValidation="True" ValidationGroup="Evento"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td style="width: 22px">
                        &nbsp;</td>
                    <td style="width: 82px">
                        Data Fim:<asp:RequiredFieldValidator ID="RequiredFieldValidator5" 
                    runat="server" ControlToValidate="txtDtFim" 
                    ErrorMessage="Por favor preencha a Data Final do Evento." 
                    ValidationGroup="Evento">*</asp:RequiredFieldValidator>
                    
                    
                    
                    
                    
                    
                    
                     <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtDtFim"
                Display="None" ErrorMessage="Data de Expedição Inválida - Utilize DD/MM/AAAA"
                SetFocusOnError="True" ValidationExpression="(0[1-9]|[12][0-9]|3[01])[/](0[1-9]|1[012])[/](19|20)\d\d" ValidationGroup="Evento">*</asp:RegularExpressionValidator>

                    
                    
                    
                    
                    
                    
                    
                    
                    </td>
                    <td colspan="2">
                        <asp:TextBox ID="txtDtFim" runat="server" Width="86px" CausesValidation="True" 
                            ValidationGroup="Evento"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td style="width: 22px">
                        &nbsp;</td>
                    <td style="width: 82px">
                        Ativo:</td>
                    <td colspan="2">
                        <asp:CheckBox ID="chbAtivo" runat="server" />
                        <asp:CustomValidator ID="err" runat="server" 
                            ErrorMessage="Existem 2 ou mais páginas com a mesma ordem." 
                            ValidationGroup="NovaPagina"> </asp:CustomValidator>
                    </td>
                </tr>
                <tr>
                    <td style="width: 22px">
                        &nbsp;</td>
                    <td colspan="3">
                        <asp:Image ID="imgBanner" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td style="width: 22px">
                        &nbsp;</td>
                    <td colspan="3">
                        <asp:Button ID="btnSalvarEEditarTelas" runat="server" SkinID="btnPadrao" 
                    Text="Inserir Novo Evento" Width="197px" ValidationGroup="Evento" />
                        <asp:ValidationSummary ID="ValidationSummary2" runat="server" 
                            ValidationGroup="Evento" style="margin-bottom: 0px" />
                    </td>
                </tr>
                <tr>
                    <td style="width: 22px">
                        &nbsp;</td>
                    <td colspan="3">
            <asp:Panel ID="panTelas" runat="server">
                <table>
                    <tr>
                        <td>
                            <b>Páginas do Evento</b></td>
                        <td style="width: 299px; ">
                            </td>
                    </tr>
                    <tr>
                        <td style="height: 166px;" colspan="2">
                            <asp:GridView ID="grvPaginas" runat="server" AutoGenerateColumns="False" 
                                DataKeyNames="IdTela" SkinID="grvEventos">
                                <Columns>
                                    <asp:BoundField DataField="Nome" HeaderText="Nome">
                                        <ItemStyle Width="200px" />
                                    </asp:BoundField>
                                    <asp:TemplateField HeaderText="Ordem">
                                        <ItemTemplate>
                                            <asp:DropDownList ID="ddlOrdem" runat="server" onload="ddlOrdem_Load" 
                                                onselectedindexchanged="ddlOrdem_SelectedIndexChanged" 
                                                SelectedIndex='<%# Bind("Ordem") %>'>
                                            </asp:DropDownList>
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                                        </EditItemTemplate>
                                        <ItemStyle HorizontalAlign="Center" Width="50px" />
                                    </asp:TemplateField>
                                    <asp:TemplateField>
                                        <EditItemTemplate>
                                            <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
                                        </EditItemTemplate>
                                        <ItemTemplate>
                                            <asp:Label ID="lblErro" runat="server" ForeColor="Red" Visible="False">*</asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField>
                                        <ItemTemplate>
                                            <asp:LinkButton ID="LinkButton1" runat="server" CommandName="Edit" 
                                                SkinID="lnkGridView">Editar</asp:LinkButton>
                                            &nbsp;<asp:LinkButton ID="LinkButton2" runat="server" CommandName="Delete" 
                                                SkinID="lnkGridView">Excluir</asp:LinkButton>
                                        </ItemTemplate>
                                        <EditItemTemplate>
                                            <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                                        </EditItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                            </asp:GridView>
                            <table style="width:100%;">
                                <tr>
                                    <td style="width: 200px">
                                        <asp:TextBox ID="txtNovaTela" runat="server" Width="197px"></asp:TextBox>
                                    </td>
                                    <td style="width: 57px">
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                            ControlToValidate="txtNovaTela" 
                                            ErrorMessage="Por favor, preenche o nome da nova página." 
                                            ValidationGroup="NovaPagina">*</asp:RequiredFieldValidator>
                                    </td>
                                    <td>
                                        <asp:LinkButton ID="lnkAdicionar" runat="server" SkinID="lnkGridView" 
                                            ValidationGroup="NovaPagina">Adicionar</asp:LinkButton>
                                    </td>
                                </tr>
                            </table>
                            <asp:ValidationSummary ID="ValidationSummary1" runat="server" 
                                ValidationGroup="NovaPagina" />
                        </td>
                    </tr>
                    <tr>
                        <td style="height: 11px;">
                            &nbsp;</td>
                        <td style="height: 11px; width: 299px;">
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td style="height: 11px;">
                            &nbsp;</td>
                        <td style="height: 11px; width: 299px;">
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <asp:Button ID="btnSalvar" runat="server" BackColor="white" BorderStyle="Solid" 
                                Font-Names="Arial" ForeColor="#F99C5F" Text="Salvar" ValidationGroup="Evento" 
                                Width="105px" />
                            &nbsp;
                            <asp:Button ID="btnExcluir" runat="server" BackColor="white" 
                                BorderStyle="Solid" Font-Names="Arial" ForeColor="#F99C5F" Text="Excluir" 
                                Width="105px" />
                            &nbsp;
                            <asp:Button ID="btnVoltar" runat="server" BackColor="white" BorderStyle="Solid" 
                                Font-Names="Arial" ForeColor="#F99C5F" Text="Voltar" Width="105px" />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            &nbsp;</td>
                    </tr>
                </table>
            </asp:Panel>

     
                    </td>
                </tr>
            </table>
                

     
       </div>
     
   
</asp:Content>

